﻿using System;
using Import.Exceptions;

namespace Import
{
    [Serializable]
    public class ImportErrorData
    {
        public ImportErrorData()
        {
            
        }
        public ImportErrorData(ScriptImportException exception)
        {
            this.Type = exception.GetType().Name;
            this.HeaderExceptionInfo = new ScriptImportException.HeaderExceptionInfo() { HeaderDataInfo = exception.HeaderDataInfo };
            this.DialogueExceptionInfo = new ScriptImportException.DialogueExceptionInfo[] { exception.DialogueInfo1, exception.DialogueInfo2};
        }

        public string Type { get; set; }
        public ScriptImportException.HeaderExceptionInfo HeaderExceptionInfo { get; set; }
        public ScriptImportException.DialogueExceptionInfo[] DialogueExceptionInfo { get; set; }
    }
}
